package solution;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-01-19
 * Time: 21:52
 */
public class Solution10 {
    public static void printArray(int[] array, int len) {
        if (len == 0) {
            return;
        }
        System.out.println(array[len - 1]);
        printArray(array, len - 1);
    }

    public static void main(String[] args) {
        int[] array = {1, 3, 5, 7, 6};
        printArray(array, array.length);
    }
}
